package model

import "time"

type UserRoleModel struct {
	Id       int64
	UserId   int64     `xorm:"notnull 'user_id' comment('用户id')"`
	RoleId   int64     `xorm:"notnull 'role_id' comment('角色id')"`
	CreateAt time.Time `xorm:"'create_at' created"`
	UpdateAt time.Time `xorm:"'update_at' updated"`
}

func (UserRoleModel) TableName() string {
	return "user_role"
}
